
<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>评论管理</title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">

		<!--标准mui.css-->
		<link rel="stylesheet" href="__TMPL__/public/assets/css/mui.min.css">

		<script src="__TMPL__/public/assets/js/jquery-2.1.4.js"></script>
		<style>
			*{color: #000000;}
		</style>
	</head>

	<body>
	<header class="mui-bar mui-bar-nav">
		<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
		<h1 class="mui-title">评论管理</h1>
	</header>
	<if condition="$comment_data neq ''">
		<div class="mui-content">
			<div class="mui-content-padded" style="margin: 5px;">
				<ul class="mui-table-view">
					<foreach name="comment_data" item="vo">
						<li class="mui-table-view-cell">
							<div class="mui-row">
								<div class="mui-col-sm-8 mui-col-xs-8">
									<a href="#" >
										<div class="mui-row" style="margin-top: 5px">
											<div class="mui-col-sm-4 mui-col-xs-4">
												科目:
											</div>
											<div class="mui-col-sm-4 mui-col-xs-4">
												{$vo.subject}
											</div>
										</div>
										<div class="mui-row" style="margin-top: 5px">
											<div class="mui-col-sm-4 mui-col-xs-4">
												老师:
											</div>
											<div class="mui-col-sm-4 mui-col-xs-4">
												{$vo.name}
											</div>
										</div>

										<div class="mui-row" style="margin-top: 5px">
											<div class="mui-col-sm-4 mui-col-xs-4">
												年级:
											</div>
											<div class="mui-col-sm-4 mui-col-xs-4">
												{$vo.grade}
											</div>
										</div>
										<div class="mui-row" style="margin-top: 5px">
											<div class="mui-col-sm-4 mui-col-xs-4">
												评价:
											</div>
											<div class="mui-col-sm-4 mui-col-xs-4">
												{$vo.start}
											</div>
										</div>
									</a>
								</div>
								<div class="mui-col-sm-4 mui-col-xs-4">
									<div class="mui-row" style="margin-top: 50%">
										<div class="mui-col-sm-6 mui-col-xs-6">
											<a href="{:url('My/pinglun',array('id'=>$vo.id))}">
												<button type="button" class="mui-btn mui-btn-green" >评价</button>
											</a>
										</div>
										<div class="mui-col-sm-6 mui-col-xs-6">
											<button type="button" class="mui-btn mui-btn-red" onclick="">删除</button>
										</div>
									</div>
									<!--<div class="mui-row" style="margin-top: 5px">-->
									<!--<div class="mui-col-sm-12 mui-col-xs-12">-->
									<!--<button type="button" class="mui-btn mui-btn-red" onclick="">删除</button>-->
									<!--</div>-->
									<!--</div>-->

								</div>
							</div>
						</li>
					</foreach>
				</ul>
			</div>
		</div>
		<else />
		<img style="width: 50%;height: 50%;margin: 25% 25% 73% 25%;background-color: #efeff4" src="/themes/qingqing/public/assets/images/demo/zanwuneirong.png">
		<div style="position: fixed;bottom: 240px;left: 150px;">暂无更多</div>
	</if>

		<script src="__TMPL__/public/assets/js/mui.min.js"></script>
		<script>
			mui.init({
				swipeBack: true //启用右滑关闭功能
			});
		</script>
	</body>
<script>
	$(".pinglun8").click(function () {
		window.location.href = "{:url('My/')}";
	});
	function pingjia(id){
		$.ajax({
			type:"post",
			url:"{:url('/portal/My/pinglun')}",
			dataType:'JSON',
			data:{accept_id:id},
			error: function (data){
				mui.toast('接受');
			},
			success: function (data) {
				url:"{:url('/portal/My/pinglun')}"
			}
		});
	}
</script>
</html>